package com.invokestatic.shooter.Screens;

import com.invokestatic.shooter.Input;

public class TransitionScreen extends Screen {

	public int time = 0;
	public Screen toScreen;
	public TransitionScreen(Screen toScreen) {
		this.toScreen = toScreen;
	}
	
	
	@Override
	public void render() {
		
	}

	@Override
	public void tick(Input input) {
		time++;
		if(time >= 20) {
			setScreen(toScreen);
		}
	}

}
